import { RouteRecordRaw, RouterView } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/algorithm-center',
    component: RouterView,
    meta: { title: '算法中心' },
    redirect: '/algorithm-center/list',
    children: [
      {
        path: '/algorithm-center/list',
        component: () => import('@/views/customer/algorithm-center/list/index.vue')
      },
      {
        path: '/algorithm-center/detail/:id',
        component: () => import('@/views/customer/algorithm-center/detail/index.vue')
      },
      {
        path: '/algorithm-center/docs/:id',
        component: () => import('@/views/customer/algorithm-center/docs.vue')
      }
    ]
  }
]

export default routes
